///
/// https://kaisery.github.io/trpl-zh-cn/ch03-05-control-flow.html
fn main() {
    let a = [10,20,30,40,50];
    let mut index = 0;

    while index < 5 {
        println!("the value is: {}",a[index]);

        index += 1;
    }
}
